interface Person{
    name:string;
    age:number;
    greet():void;
}
class Student implements Person{
    constructor(public name:string,public age:number){}
    greet() {
        console.log(`name is ${this.name},age is ${this.age}`)
    }
}
const s = new Student('xhc',20)
s.greet()
console.log(s.name)

let point:[number,number] = [20,30]
console.log(point);

class P{
    private name:string;
    private age:number;
    public constructor(name:string,age:number){
        this.name = name
        this.age = age

    }
}
const greet = (name: string): string => "Hello, " + name
console.log(greet('aaaaa'));
